package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 云盾型号默认能力
 * </p>
 *
 * @author wangchao
 * @since 2024-04-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_model_uhub")
public class ModelUhubPO extends Model<ModelUhubPO> {

    private static final long serialVersionUID = 1L;

    /**
     * 型号ID 直接引用t_device_model表
     */
    @TableId(value = "model_id", type = IdType.AUTO)
    private Integer modelId;

    /**
     * 端口数量
     */
    private Integer devicePortNum = 0;

    /**
     * 按键精灵数量
     */
    private Integer deviceUkeyNum = 0;

    /**
     * 删除标记，默认为0表示未删除，1表示已删除
     */
    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.modelId;
    }
}
